<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title>title</title>
		<link rel="stylesheet" type="text/css" href="../css/api.css"/>
		<link rel="stylesheet" href="../../css/base.css">
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
		<style>
			body {
			}
			.icon_right {
				height: 20px;
				position: absolute;
				top: 50%;
				right: 15px;
				/* left: 15px; */
				margin-top: -11px;
			}
		</style>
	</head>
	<body>
		<div class="base_style_color base_title_Immerse" id='BarAppearance' ></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar base_title_position" >
			<a class="base_left_item" href="#" onclick="backIndex()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span>提问</span>
			<a class="base_left_item" href="#" onclick="addQusestion()" style="float: right"> <img class="icon_right" src="../../image/icon_discuss_add.png" alt=""> </a>
		</div>
	</body>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript">
		apiready = function() {
			setupSubFrame();
		};
		function setupSubFrame() {
			var y = $('.base_navigation_bar').height() + 22;
			var h = api.winHeight - y;
			api.openFrame({
				name : 'TeacherQuestionsPager',
				url : 'TeacherQuestionsPager.html',
				rect : {
					x : 0,
					y : y,
					w : 'auto',
					h : h
				},
				bounces : false,
				vScrollBarEnabled : true,
				hScrollBarEnabled : false,
				pageParam : api.pageParam
			});
		}

		function addQusestion() {
			api.openWin({useWKWebView:true,
				name : 'TeacherQusertion',
				url : 'TeacherQusertion.html',
				slidBackEnabled : false,
				pageParam : {
					type : 1,
					cid : api.pageParam.cid,
					pid : api.pageParam.pid,
					sourceurl : api.pageParam.sourceurl,
					sourcetitle : api.pageParam.sourcetitle
				},
			});
		}

		function backIndex() {
			sendBuriedNotifi('1', '老师端提问列表页', '201')
			api.closeWin({
			});
		}

		function sendBuriedNotifi(busionessid, pagetype, pagetypeid) {
			var userinfo = {
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjxid'),
				uname : $api.getStorage('cfnetppusername'),
			}
			var data = {
				busionessid : busionessid,
				pagetype : pagetype,
				pagetypeid : pagetypeid,
				sourceurl : api.pageParam.sourceurl,
				sourcetitle : api.pageParam.sourcetitle,
				accesspageurl : window.location.pathname,
				accesspagetitle : document.title,
				userinfo : userinfo
			}
			SendBehaviorTrajectoriesNotifi_Study(data);
		}
	</script>
</html>